package com.example.wingy.logdemo;

import android.app.Activity;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.Button;

public class logDemo extends Activity {
    private static final String ACTIVITY_TAG="logDemo";
    private Button bt;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        bt=(Button)findViewById(R.id.bt);
        bt.setOnClickListener(new Button.OnClickListener(){
            public void onClick(View v){
                Log.v(logDemo.ACTIVITY_TAG,"This is Verbose");
                Log.d(logDemo.ACTIVITY_TAG,"This is Debug");
                Log.i(logDemo.ACTIVITY_TAG,"This is Information");
                Log.w(logDemo.ACTIVITY_TAG,"This is Warnning");
                Log.e(logDemo.ACTIVITY_TAG,"This is Error");
            }
        });
    }
}
